package eatest;

public class SFoo {

	private int numA, numB;

	public SFoo() {
	}

	public SFoo(int numA, int numB) {
		this.numA = numA;
		this.numB = numB;
	}

	public synchronized int getNumA() {
		return numA;
	}

	public synchronized void setNumA(int numA) {
		this.numA = numA;
	}

	public synchronized int getNumB() {
		return numB;
	}

	public synchronized void setNumB(int numB) {
		this.numB = numB;
	}

	public synchronized int sum() {
		return numA + numB;
	}

}
